package zy.viewpagerslidingconflict;


import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;

public class ImageViewExd extends android.support.v7.widget.AppCompatImageView {
    public ImageViewExd(Context context) {
        super(context);
    }

    public ImageViewExd(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public ImageViewExd(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
//    @Override
//    public boolean dispatchTouchEvent(MotionEvent ev) {
////        getParent().requestDisallowInterceptTouchEvent(true);
//        return  super.dispatchTouchEvent(ev);
//       // return true;
//    }
    @Override
    public boolean onTouchEvent(MotionEvent event) {
       // super.onTouchEvent(event);
        Log.i("hello","ImageViewExd onTouchEvent");
        switch (event.getAction()) {
            case MotionEvent.ACTION_DOWN:
                break;
            case MotionEvent.ACTION_MOVE:
                break;
            case MotionEvent.ACTION_UP:
                break;
            default:
        }

        return true;
    }
}
